<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core">
    
    
     <p:panel header="CALIFICANDO A PRACTICANTE" style="border: none;">
        <div align="center">
            <h:form style="border-style: solid; border-color: #069; font-weight: bold; width: 99%">
                <p><h:outputText value="CALIFICANDO SUS PRACTICAS DESPUES DE LA SUSTENTACIÓN" style="font-weight: bold; font-size: 18px; color:#069;"/></p>
                <br/>
                <h:panelGrid columns="2" cellspacing="5" id="panelGridIDdaxx">

                    <h:outputText value="NOTA FINAL: "/>
                    <p:spinner value="#{practiceProcessBean.notaFinal}" min="0" max="20"
                               required="true" title="Fecha" size="5"/>
                    
                    <h:outputText value="ESTADO "/>
                    <p:selectOneMenu value="#{practiceProcessBean.stateSelected}" >
                        <f:selectItems value="#{practiceProcessBean.condicion}" var="condi"
                                       itemLabel="#{condi}" itemValue="#{condi}"/>
                    </p:selectOneMenu>
                    <h:outputText value="DETALLE"/>
                    <p:inputTextarea value="#{practiceProcessBean.detalle}" style="width: 95%"
                                     required="true" title="Detalle" autoResize="false" maxlength="149"/>

                </h:panelGrid>

                <p:commandButton value="Guardar" action="#{practiceBean.initCollection()}" update=":panelCenter"
                                 onstart="PF('blockUI').block();" oncomplete="PF('blockUI').unblock();">
                    <f:actionListener binding="#{practiceProcessBean.saveCalification()}" />
                    <f:setPropertyActionListener value="./content/practice.xhtml" target="#{indexLoginBean.navigation}"/>
                </p:commandButton>
                <br/><br/>
            </h:form>

        </div>
    </p:panel>
    
    
</ui:composition>
